using System;
using System.Collections;
using CE.Database;
/// <summary>
/// Summary description for UserProfileDB
/// </summary>
/// 
namespace CE.User
{
    public class UserConfirmationDB
    {
        public UserConfirmationDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public Int64 Insert(UserConfirmation userconfirm)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "[sprocUserConfirmationInsertUpdateSingleItem]";
            
            SortedList _sPara = new SortedList();
            
            #region Parameter
            _sPara.Add("@UserConfirmationId", userconfirm.UserConfirmationId);
            _sPara.Add("@ConfirmationType", userconfirm.ConfirmationType);
            //_sPara.Add("@UserResultId", userconfirm.UserResultId);
            _sPara.Add("@SelectedId", userconfirm.UserSelectedId);
            _sPara.Add("@IsConfirm", userconfirm.IsConfirm);
            _sPara.Add("@CurrentStep", userconfirm.CurrentStep);
            _sPara.Add("@IsComplete", userconfirm.IsComplete);
            _sPara.Add("@ResultStatus", userconfirm.ResultStatus);
            _sPara.Add("@FirstStepId", userconfirm.FirstStepId);
            _sPara.Add("@RefCEUserId", userconfirm.RefCEUserId);

            _sPara.Add("@Status", userconfirm.Status);
                //_sPara.Add("@Info1", template.Info1);
                //_sPara.Add("@Info2", template.Info2);
                //_sPara.Add("@Info3", template.Info3);
                //_sPara.Add("@Info4", template.Info4);
                //_sPara.Add("@Info5", template.Info5);
                //_sPara.Add("@Info6", template.Info6);
                //_sPara.Add("@Info7", template.Info7);
                //_sPara.Add("@Info8", template.Info8);
                //_sPara.Add("@Info9", template.Info9);
                //_sPara.Add("@Info10", template.Info10);
                //_sPara.Add("@Info11", template.Info11);
                //_sPara.Add("@Info12", template.Info12);
                //_sPara.Add("@Info13", template.Info13);
                //_sPara.Add("@Info14", template.Info14);
                //_sPara.Add("@Info15", template.Info15);
                //_sPara.Add("@Info16", template.Info16);
                //_sPara.Add("@Info17", template.Info17);
                //_sPara.Add("@Info18", template.Info18);
                //_sPara.Add("@Info19", template.Info19);
                //_sPara.Add("@Info20", template.Info20);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }

        public bool Update()
        {
            return true;
        }

        public bool Delete()
        {
            return true;
        }
        
    }
}